<?php

use think\facade\Route;

// Route::get('member', function () {
//     return 'hello,member!';
// });
// 微信退款
// Route::get('member/user1/index', 'member.User/index2');
// // 结算佣金
// Route::get('member/order/commissionRule', 'member.OrderController/commissionRule');
// 需要登录鉴权的路由
Route::group('member', function () {
    /*系统会员相关*/
    Route::get('user/index', 'member.user/index');
    Route::get('user/show', 'member.user/show');
    Route::post('user/save', 'member.user/save');
    Route::post('user/update', 'member.user/update');
    Route::post('user/resetPwd', 'member.user/resetPwd');
    Route::delete('user/del', 'member.user/delete');
    Route::post('user/changeStatus', 'member.user/changeStatus');

    Route::get('user/profile', 'member.user/profile');
    Route::post('user/updateProfile', 'member.user/updateProfile');
    Route::post('user/updatePwd', 'member.user/updatePwd');

    Route::get('user/userMenuTreeselect', 'member.user/userMenuTreeselect');
    Route::post('user/updateUserMenu', 'member.user/updateUserMenu');


    Route::get('areas/getList', 'admin.AreasController/getList');



    Route::get('poster/getCode', 'member.PosterController/getCode');

    Route::get('order/getOrderList', 'member.OrderController/getOrderList');
    Route::get('order/getRefundOrderList', 'member.OrderController/getRefundOrderList');


    Route::get('agent/getAgentList', 'member.AgentController/getAgentList');




    // 上传文件
    Route::post('common/uploadFile', 'CommonController/uploadFile2');
    /*系统会员相关*/
})->middleware([\app\middleware\AuthCheck::class, \app\middleware\UserPermissionCheck::class, \app\middleware\UserOperLog::class]);
